package com.huaxiafinance.management.service;

import com.huaxiafinance.management.dto.request.AddScoreProDto;
import com.huaxiafinance.management.dto.request.QueryShoppingProDto;
import com.huaxiafinance.management.dto.response.QueryScoreProDto;
import com.huaxiafinance.management.model.MallProduct;
import com.huaxiafinance.management.model.MallRecommend;

import java.util.List;
import java.util.Map;

/**
 * Created by lenovo on 2017/9/4.
 */
public interface YfqShoppingProService {

  List<Map> queryList(QueryShoppingProDto dto);

  int upDown(int id, int isGround);

  List<Map> selectType();

  int countList(QueryShoppingProDto dto);

  void putRec(List<MallRecommend> recomend);

  MallProduct queryByCode(String code);

  List<MallRecommend> selectAll();

  int addPro(AddScoreProDto dto) throws Exception;

  List<Map> selectTag(Integer category);

  QueryScoreProDto getProOne(Integer id);

  int updatePro(AddScoreProDto dto) throws Exception;

  void deletePro(Integer id);

}
